package Homework;

public class Pet {
    String name;

public void eat(){
    System.out.println(name+"吃饭");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
